Skip to content

Prevent ClassCastException in AssayPublishConfirmAction#6704

Merged
labkey-tchad merged 1 commit intodevelopfrom
fb_assayPublishClassLoader
May 28, 2025
Merged

Prevent ClassCastException in AssayPublishConfirmAction#6704
labkey-tchad merged 1 commit intodevelopfrom
fb_assayPublishClassLoader

Conversation

@labkey-tchad
Copy link
Copy Markdown
Member

Rationale

Removing the override of getPost is causing a ClassCastException when visiting the assay publish page.

java.lang.ClassCastException: class org.labkey.api.study.publish.PublishConfirmForm cannot be cast to class org.labkey.study.assay.AssayPublishConfirmAction$AssayPublishConfirmForm (org.labkey.api.study.publish.PublishConfirmForm and org.labkey.study.assay.AssayPublishConfirmAction$AssayPublishConfirmForm are in unnamed module of loader org.labkey.embedded.LabKeySpringBootClassLoader @4dad0eed)
	at org.labkey.study.assay.AssayPublishConfirmAction.validateCommand(AssayPublishConfirmAction.java:47) ~[study-25.6-SNAPSHOT.jar:?]
	at org.labkey.api.action.FormViewAction.validate(FormViewAction.java:160) ~[api-25.6-SNAPSHOT.jar:?]
	at org.labkey.api.action.FormViewAction.handleRequest(FormViewAction.java:84) ~[api-25.6-SNAPSHOT.jar:?]
	at org.labkey.api.action.FormViewAction.handleRequest(FormViewAction.java:70) ~[api-25.6-SNAPSHOT.jar:?]
	at org.labkey.api.action.BaseViewAction.handleRequest(BaseViewAction.java:190) ~[api-25.6-SNAPSHOT.jar:?]

Related Pull Requests

Changes

  • Override 'handlePost' to prevent ClassCastException

@labkey-tchad labkey-tchad requested a review from a team May 27, 2025 16:26
@labkey-tchad
Copy link
Copy Markdown
Member Author

@labkey-tchad labkey-tchad merged commit 5a47405 into develop May 28, 2025
15 of 17 checks passed
@labkey-tchad labkey-tchad deleted the fb_assayPublishClassLoader branch May 28, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants